package day240508.Practice;

public class Test {
    public static void main(String[] args) {

        //Algorithm sum100 = new Sum100();
        MyUtil.calculateTime(new Sum100());

        System.out.println("=== === ===");


        //Algorithm table99 = new Table99();
        MyUtil.calculateTime(new Table99());

        Algorithm bubbleSort = new BubbleSort();
        MyUtil.calculateTime(new BubbleSort());

        //Algorithm a = new Algorithm();
        MyUtil.calculateTime(new Algorithm() {

            @Override
            public void justDoIt() {
                System.out.println("这是一个新的算法");
            }
        });
    }
}
